package us.cirion.adventure.ui.mobile;

import us.cirion.adventure.engine.Word;

/**
 * AcceptInput is a custom Word used by the mobile UI to allow the user to
 * signify that they have finished entering their desired command. For example,
 * if the user has already entered the verb "Use" and the noun "Wheelbarrow",
 * they could then enter the command "Done" to accept the input and use the
 * wheelbarrow by itself instead of with some other object.
 * 
 * @author Chris
 */
class AcceptInput extends Word
{

	private static AcceptInput acceptInput;

	private AcceptInput()
	{
		super();
		// TODO: i18n
		setText("[Done]");
	}

	public static AcceptInput getInstance()
	{
		if (acceptInput == null)
		{
			acceptInput = new AcceptInput();
		}
		return acceptInput;
	}

}
